$PrefixDir = Split-Path -Parent $PSScriptRoot
Import-Module -Name "$PrefixDir/Modules/AesProvider"

$res=New-AesFile -File "$PrefixDir/ReadMe.md" -Key "RsiLgnRAr+D8v6YEqnLuqKzOFgrdIrSB1fGiT7TZfTk=" -Destination "/tmp/fuck.aes"

if($res -eq 0){
    $res=Restore-AesFile -File "/tmp/fuck.aes" -Key "RsiLgnRAr+D8v6YEqnLuqKzOFgrdIrSB1fGiT7TZfTk=" -Destination "/tmp/fuck.readme.md"
    if($res -eq 0){
        Write-Host "Test AES file success"
    }
}